package calculator.operator.sequential;


import calculator.operator.Operator;
import calculator.operator.Priority;

public class LeftParenthesisOperator implements Operator, SequentialOperation{

    @Override
    public int getPriority() {
        return Priority.PRIORITY_HIGHEST;
    }

    @Override
    public boolean support(char c) {
        return c == '(';
    }

    @Override
    public boolean isLeft() {
        return true;
    }

    @Override
    public boolean isOtherHalf(Operator operator) {
        return operator instanceof RightParenthesisOperator;
    }
}
